package com.woniuxy.ticketcinema.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniuxy.ticketcinema.entity.TicketSeat;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface SeatMapper extends BaseMapper<TicketSeat> {
    int findSeatIdByCoord(@Param("rowno")int rowno,@Param("colno")int colno);

    //查询座位是否可以售卖？
    int updateStatus(int SeatId);

    //查询座位是否能坐人？     返回座位状态
    int findStatusBySeat(@Param("rowno")int rowno,@Param("colno")int colno);

    //查询是否被人购买
    String findStatusBySeatId(int seatId);
}
